home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 1
/
SPACE - Library 1 - Volume 1.iso
/
misc~1
/
30
/
pcbatch
/
q.bat
< prev
next >
Wrap
DOS Batch File
|
1986-12-04
|
458b
|
20 lines
echo off
cls
if %:a==0 goto error
if %:a==1 goto error
if %1==copy goto param3
gem :file %2 *.*
for %%f in ( %:d:%:p\%:f ) do query %1 %:d:%:p\%%f
goto clear
:param3
gem :file %2 *.*
for %%f in ( %:d:%:p\%:f ) do query copy %:d:%:p\%%f %3
:clear
cls
exit
:error
echo @F 1format: Q command drive:\folder
echo purpose: execute command, but ask for each filename
echo # Either drive or folder may be ommitted, but not both
echo @F 0